package com.xin.di.uav.common.utils;

import org.springframework.stereotype.Component;

/**
 * @author ta136817
 */
@Component
public class PhoneDesensitizationUtil {
    public static String phoneDesensitization(String phone)  {
        return phone.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2");
    }
}
